package com.ruoyi.project.purchase.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class Purch_drug extends BaseEntity {
    private Integer drugId;
    private String drugName;
    private String drugUnit;
    private String factoryName;
    private Integer purNumbers;
    private Double drugRxPrice;
    private Double purPrice;
    private String purId;


    public Purch_drug() {
    }

    public Purch_drug(Integer drugId, String drugName, String drugUnit, String factoryName, Integer purNumbers, Double drugRxPrice, Double purPrice, String purId) {
        this.drugId = drugId;
        this.drugName = drugName;
        this.drugUnit = drugUnit;
        this.factoryName = factoryName;
        this.purNumbers = purNumbers;
        this.drugRxPrice = drugRxPrice;
        this.purPrice = purPrice;
        this.purId = purId;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getDrugUnit() {
        return drugUnit;
    }

    public void setDrugUnit(String drugUnit) {
        this.drugUnit = drugUnit;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public Integer getPurNumbers() {
        return purNumbers;
    }

    public void setPurNumbers(Integer purNumbers) {
        this.purNumbers = purNumbers;
    }

    public Double getDrugRxPrice() {
        return drugRxPrice;
    }

    public void setDrugRxPrice(Double drugRxPrice) {
        this.drugRxPrice = drugRxPrice;
    }

    public Double getPurPrice() {
        return purPrice;
    }

    public void setPurPrice(Double purPrice) {
        this.purPrice = purPrice;
    }

    public String getPurId() {
        return purId;
    }

    public void setPurId(String purId) {
        this.purId = purId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Purch_drug that = (Purch_drug) o;
        return Objects.equals(drugId, that.drugId) &&
                Objects.equals(drugName, that.drugName) &&
                Objects.equals(drugUnit, that.drugUnit) &&
                Objects.equals(factoryName, that.factoryName) &&
                Objects.equals(purNumbers, that.purNumbers) &&
                Objects.equals(drugRxPrice, that.drugRxPrice) &&
                Objects.equals(purPrice, that.purPrice) &&
                Objects.equals(purId, that.purId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(drugId, drugName, drugUnit, factoryName, purNumbers, drugRxPrice, purPrice, purId);
    }

    @Override
    public String toString() {
        return "Purch_drug{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", drugUnit='" + drugUnit + '\'' +
                ", factoryName='" + factoryName + '\'' +
                ", purNumbers=" + purNumbers +
                ", drugRxPrice=" + drugRxPrice +
                ", purPrice=" + purPrice +
                ", purId='" + purId + '\'' +
                '}';
    }
}
